import request from '@/utils/request'

const productApi = {

  listMyOrder: '/qw/myProduct/listMyOrder',
  pageMyCreateOrder: '/qw/myProduct/pageMyCreateOrder',
  createOrder: '/qw/order/createOrder',
  checkOrder: '/qw/order/checkOrder'
  // getUrl: '/file/getUrl'
}

export function listMyOrder (parameter) {
  return request({
    url: productApi.listMyOrder,
    method: 'post',
    data: parameter
  })
}

export function pageMyCreateOrder (parameter) {
  return request({
    url: productApi.pageMyCreateOrder,
    method: 'get',
    params: parameter
  })
}

export function createOrder (parameter) {
  return request({
    url: productApi.createOrder,
    method: 'get',
    params: parameter
  })
}

export function checkOrder (parameter) {
  return request({
    url: productApi.checkOrder,
    method: 'get',
    hideError: true,
    params: parameter
  })
}

export default {
  pageMyCreateOrder,
  listMyOrder,
  createOrder,
  checkOrder

}
